import axios from '@/libs/request/axios'

//获取规则信息
export const queryRule = (params) => {
    return axios.request({
        url: '/case/group/getAfsRuleInfo',
        params:params,
        method: 'get'
    })
}

//添加优先级
export const addRegularValue = (params) => {
    return axios.request({
        url: `/case/group/addRegularValue`,
        data: params,
        method: 'post'
    })
}

//添加分单时间
export const addSplittingTime = (params) => {
    return axios.request({
        url: `/case/group/addSplittingTime`,
        data: params,
        method: 'post'
    })
}

//添加匹配规则参数
export const addProcedure = (params) => {
    return axios.request({
        url: `/case/group/addProcedure`,
        data: params,
        method: 'post'
    })
}

//添加置顶规则信息
export const addTop = (params) => {
    return axios.request({
        url: `/case/group/addTop`,
        data: params,
        method: 'post'
    })
}

//修改规则状态
export const updateRuleState = (params) => {
    return axios.request({
        url: `/case/group/updateRuleState`,
        data: params,
        method: 'post'
    })
}

//修改置顶，优先级规则状态
export const updateTopPriorityRule = (params) => {
    return axios.request({
        url: `/case/group/updateTopPriorityRule`,
        data: params,
        method: 'post'
    })
}

//查询优先级
export const queryRegularValue = (params) => {
    return axios.request({
        url: '/case/group/queryRegularValue',
        params:params,
        method: 'get'
    })
}
